package cn.zl.GB28181.storage;

import cn.zl.GB28181.core.ErrorCallback;
import cn.zl.model.DeviceChannel;

import java.util.List;

public interface IDeviceChannelStorage {

    /**
     * 清空通道
     *
     * @param deviceId 设备编号
     */
    void cleanChannelsForDevice(String deviceId);

    boolean resetChannels(String deviceId, List<DeviceChannel> deviceChannelList);

    boolean updateChannels(String deviceId, List<DeviceChannel> deviceChannelList);

    /**
     * 点播设备通道
     *
     * @param deviceId  设备编号
     * @param channelId 设备通道编号
     */
    void play(String deviceId, String channelId, ErrorCallback<Object> callback);
}
